package com.example.mytayunapi.Entity;

import lombok.Data;

@Data
public  class LoginResponse {
    private String message;
    private boolean success;
    private String token; // 新增Token字段

    public LoginResponse(String message, boolean success) {
        this.message = message;
        this.success = success;
    }
    // 新增构造函数，包含Token参数
    public LoginResponse(String message, boolean success, String token) {
        this.message = message;
        this.success = success;
        this.token = token;
    }
    // 新增getter和setter方法
    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    // Getter和Setter方法
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }
}

